package com.agent.user.api.feign;

import com.agent.common.result.ApiResponse;
import com.agent.user.api.req.UserAssetReq;
import com.agent.user.api.resp.AdminUserResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 管理员用户Feign客户端
 * @author Jeff_Wan
 * @description 管理员用户Feign接口
 */
@FeignClient(name = "agent-user", contextId = "userAsset", path = "/api/assets")
public interface UserAssetFeignClient {

    /**
     * 记录用户资产信息
     * @param request 上传的资料信息
     * @return 状态信息
     */
    @PostMapping("/record")
    ApiResponse<?> recordUserAsset(@RequestBody UserAssetReq request);
}